package uplb.ics.cs190.e2d.test;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Graphics;
import javax.microedition.midlet.MIDlet;

public class FillRectGraphicsMIDlet extends MIDlet {
	  private Display display;
	  protected void startApp() {
	    Canvas canvas = new LineCanvas();
	    display = Display.getDisplay(this);
	    display.setCurrent(canvas);
	  }
	  protected void pauseApp() {
	  }
	  protected void destroyApp(boolean unconditional) {
	  }
	}

	class LineCanvas extends Canvas {
	  public void paint(Graphics g) {
	    g.setColor(0, 255, 0);
	    g.fillRect(0, 0, 10, 10);  
	    }
	}